package com.mars.tukuan.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;
import com.mars.base.common.utils.Paginator;
import com.mars.base.dao.support.BaseMapper;
import com.mars.tukuan.dto.CarVo;
import com.mars.tukuan.entity.Car;

public interface CarMapper extends BaseMapper<Car, Long> {
	
	public List<Car> searchCarByNum(String num) ;
	
	public Page<Car> selectPageByCarState(@Param("paginator")Paginator paginator, @Param("entity")CarVo entity) ;
	
	public Page<Car> selectPageByCarCheck(@Param("paginator")Paginator paginator, @Param("entity")CarVo entity) ;
	
	/**
	 * 我的上传
	 * @param pageParam
	 * @param entity
	 * @return
	 */
	public Page<Car> myCarState(@Param("paginator")Paginator paginator, @Param("entity")CarVo entity) ;
	
	public Page<Car> selectPageByHarm(@Param("paginator")Paginator paginator, @Param("entity")CarVo entity) ;
	
	/**
	 * 更新车辆检查时间，用于计算逾期
	 * @param id
	 */
	public void updateCheckTime(Long id) ;
	
}